<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link href="css/common.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/control.css" rel="stylesheet">
    <link href="css/access_control.css" rel="stylesheet">
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/font-awesome-ie7.min.css">
    <style>

    </style>
</head>
<body style="cursor: pointer">
<span class="unit_info">单元门禁</span>
<div class="right_box_down">
    <div class="right_box_cen colour_con">
        <span class="con-1"></span>
        <span class="con-1">
        <input type="checkbox" name="selectall" style="z-index: 3">
    </span>
        <span class="send con-7  send_region">门禁名称
        <i class="fa fa-sort-asc ashy"></i>
        <i class="fa fa-sort-desc"></i>
    </span>
        <span class="send con-7 send_company">类型
        <i class="fa fa-sort-asc ashy"></i>
        <i class="fa fa-sort-desc"></i>
    </span>
    </div>
    <div class="right_box_cen serial ">
        <span class="con-1">1</span>
        <span class="con-1"><input type="checkbox" name="stuCheckBox"></span>
    </div>
</div>

</body>
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="js/layer.js"></script>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/ajax_data.js" type="text/javascript"></script>

<script src="js/access_control.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/time.js" type="text/javascript"></script>
<script>
    //门禁名称显示隐藏图标
    $('.send_region').on('click',function () {
        $(this).addClass('box_con').siblings().removeClass('box_con');
        $('.box_con .fa').toggleClass("ashy");
        var sort='cityCode';
        var pageNo=$('.currentPage').val();
        var pageSize=$('#select').val();
        if(!$(this).find(".fa-sort-asc").hasClass("ashy")){
            var order='ASC';
            add_list(pageNo,pageSize,sort,order)
        }
        if(!$(this).find(".fa-sort-desc").hasClass("ashy")){
            var order='DESC';
            add_list(pageNo,pageSize,sort,order)
        }

    });
    //类型显示隐藏图标
    $('.send_company').on('click',function () {
        $(this).addClass('box_con').siblings().removeClass('box_con');
        $('.box_con .fa').toggleClass("ashy");
        var sort='cityCode';
        var pageNo=$('.currentPage').val();
        var pageSize=$('#select').val();
        if(!$(this).find(".fa-sort-asc").hasClass("ashy")){
            var order='ASC';
            add_list(pageNo,pageSize,sort,order)
        }
        if(!$(this).find(".fa-sort-desc").hasClass("ashy")){
            var order='DESC';
            add_list(pageNo,pageSize,sort,order)
        }

    });

</script>
</html>